package com.zhang.controller;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
        import org.springframework.web.bind.annotation.ResponseBody;



@Controller
public class UserController {
   /*@RequestMapping
    @ResponseBody
    public String user(){
        System.out.println("张圣林大帅哥");
        return "bbb";
    }*/

    @RequestMapping("/save")
    //设置当前操作返回结果为指定json数据（本质上是一个字符串信息）
    @ResponseBody
    public String save(){
        System.out.println("user save ...");
        return "{'info':'springmvc'}";
    }
}
